<div class="col-md-12 row bgw pd10">
    <div>
        <form class="form-horizontal" id="article_form">
            <h1>发表博文<small>&emsp;——将思考记录于此。</small></h1>
            <div>
                <div class="form-group">
                    <label class="col-sm-1 control-label">标题：</label>
                    <div class="col-sm-11">
                        <input class="form-control" name="title" id="title" type="text"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-1 control-label">正文：</label>
                    <div class="col-sm-11">
                        <textarea class="form-control" id="editor" name="content" rows="20"></textarea>
                    </div>
                </div>
            </div>
            <div>
                <button class="btn btn-default btn-primary article_btn col-sm-offset-1">提交</button>
            </div><br/><br/><br/><br/><br/>
        </form>
    </div>
</div>
<script>

    function kedit(kedit){
        var editor = KindEditor.create(kedit,{
            width: '850',
            height: '500',
            resizeMode: 0,
            allowPreviewEmoticons: false,
            items: [
                'bold', 'italic', 'underline',
                '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
                'insertunorderedlist', '|', 'emoticons', 'link']
        });
    }

    $(function(){
        kedit('textarea[name="content"]');
    })



</script>
